package com.operation.dao;

import com.operation.entity.HandleInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface HandleInfoMapper {
    int deleteByPrimaryKey(Integer handleId);

    int insert(HandleInfo record);

    int insertSelective(HandleInfo record);

    HandleInfo selectByPrimaryKey(Integer handleId);

    int updateByPrimaryKeySelective(HandleInfo record);

    int updateByPrimaryKey(HandleInfo record);

    int updateReceiveOne(HandleInfo record);

    int updateStatus(HandleInfo record);

    int updateReceiver(HandleInfo record);

    int deleteHandleInfo(HandleInfo record);

    HandleInfo countAllWorkOrder(Integer receiveOne);

    HandleInfo countMonthWorkOrder(@Param("startTime")String startTime, @Param("endTime")String endTime,
                                   @Param("receiveOne")Integer receiveOne );

    HandleInfo countIsCompleteWorkOrder(@Param("startTime")String startTime,@Param("endTime")String endTime,
                                        @Param("receiveOne")Integer receiveOne,@Param("isComplete")Integer isComplete);

    HandleInfo countStatusCompleteWorkOrder(@Param("startTime")String startTime,@Param("endTime")String endTime,
                                         @Param("receiveTwo")Integer receiveTwo,@Param("status")Integer status);
}